<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
          <td>客户编码</td>
          <td>客户名称</td>
          <td>订单号</td>
          <td>发货单</td>
          <td>物流单号</td>
          <td>申请时间</td>
        </tr>
    <{assign var="key" value="0"}>
      <{foreach from=$res item=his}>
    <{assign var="key" value=$key+1 }>
      <tbody>
        <tr>
          <td><{$his.AXCustomer}></td>
          <td><{$his.customername}></td>
          <td><{$his.order_bn}></td>
          <td><{$his.delivery_bn}></td>
          <td><{$his.logi_no}></td>
          <td><{$his.last_modify}></td>
        </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td>总数：</td>
          <td><{$key}></td>
        </tr>
      </table>
</div>